package com.ideaplugin.datamanager.service;

import com.ideaplugin.datamanager.model.request.RoleColumnParam;
import com.ideaplugin.datamanager.model.request.TableColumnParam;
import com.ideaplugin.datamanager.model.request.TableColumnSortParam;
import com.ideaplugin.datamanager.model.response.TableColumnVo;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public interface TableColumnService {


    /**
     * 查询统维计度、
     */
    List<TableColumnVo> list(Long tableInfoId);

    /**
     * 增加或修改维度
     *
     * @param param StatisticalDataCodeParam
     */
    Boolean saveOrUpdate(TableColumnParam param);


    /**
     * 删除维度
     */
    Boolean delete(Long id);


    List<String> listRoleColumnCode(RoleColumnParam roleColumnParam);

    /**
     * 字段排序
     *
     * @param param
     * @return
     */
    Boolean sortTableColumn(TableColumnSortParam param);
}
